CC   = g++ -g
COMPILE.C  = $(CC) -c 
VPATH   = ./
CXXFLAGS  =  -lgcc_s 
MAKEEXE   = $(CC) $(LDFLAGS)

OBJ   = GTTcpServer.o main.o GTTcpConnection.o GTTcpConnectionForImageReceive.o
EXE   = GTReceiveImageServer

all:   $(EXE)

$(EXE):   ${OBJ}
	$(MAKEEXE) $^ -o $@ -lpthread
%.o:   %.cpp
	$(COMPILE.C) $< -o $@

clean:
	rm -f *.o $(EXE) core
